<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
</head>
<body>

<script>
    location.json = function () {
        var ret = {};
        location.search.slice(1).split("&").forEach(function (it) {
            var sects = it.split("=");
            ret[sects[0]] = decodeURIComponent(sects[1])
            ;
        });
        return ret;
    }();

    location.json2href = function () {
        return location.protocol + "//" + location.host + location.pathname + "?" + Object.keys(location.json).map(it => it + "=" + encodeURIComponent(location.json[it])).join("&")
    };
</script>
<script>
    (function () {
        if( top === window){
            return;
        }
        //接受 title,msg 参数
        var title = location.json["title"] || "";
        var msg = location.json["msg"];
        var type = location.json["type"] || "warn";

        if (msg) {
            if (!(type in top.jv)) {
                return
            }

            top.jv[type](msg, title);
        }
    })();

</script>
</body>
</html>